//
//  LoveHomeViewController.m
//  News
//
//  Created by weige on 16/5/28.
//  Copyright © 2016年 weige. All rights reserved.
//

#import "LoveHomeViewController.h"
#import "HeadModel.h"
#import "ContentFileFillPath.h"
#import "MJExtension.h"
#import "HotView.h"
@interface LoveHomeViewController ()<SDCycleScrollViewDelegate>

@end

@implementation LoveHomeViewController
- (instancetype)init
{
    self = [super init];
    if (self) {
        self.automaticallyAdjustsScrollViewInsets=NO;
    }
    return self;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    SDCycleScrollView *sc=[SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(0, 64, self.view.frame.size.width, 110) delegate:self placeholderImage:[UIImage imageNamed:@"photo.jpg"]];
    sc.titlesGroup=[HeadView loadDataImage:@"name"];
    sc.autoScrollTimeInterval=3.0;
    sc.currentPageDotImage=[UIImage imageNamed:@"v2_home_cycle_dot_selected"];
    [self.view addSubview:sc];
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        sc.imageURLStringsGroup=[HeadView loadDataImage:@"img"];
        
    });
    
    HotView *hot=[[HotView alloc]init];
    float hotX=0;
    hot.backgroundColor=[UIColor whiteColor];
    float hotY=CGRectGetMaxY(sc.frame);
    hot.frame=CGRectMake(hotX, hotY, SCREEN_WIDTH, 100);
    [self.view addSubview:hot];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
